//
//  MPasswordView.m
//  QuickCure1
//
//  Created by 冬冬 on 2016/11/1.
//  Copyright © 2016年 maoge. All rights reserved.
//

#import "MPasswordView.h"

@implementation MPasswordView

-(void)awakeFromNib{
    [super awakeFromNib];

    [self changetextFieldBorderStyleWith:self.NewPW];
    [self changetextFieldBorderStyleWith:self.CustomaryPW];
    [self changetextFieldBorderStyleWith:self.repeatPW];
}

//修改textField的边框
-(void)changetextFieldBorderStyleWith:(UITextField *)textField{
        [textField setBorderStyle:UITextBorderStyleRoundedRect];
        textField.layer.cornerRadius = 5;
        textField.layer.borderColor = [UIColor lightGrayColor].CGColor;
        textField.clipsToBounds = YES;
        textField.layer.borderWidth = 1.0;
}
//点击确认
- (IBAction)clickBtn:(UIButton *)sender {
    NSLog(@"我点击了Btn");
    NSLog(@"CustomaryPW%@,NewPW%@,repeatPW%@",self.CustomaryPW.text,self.NewPW.text,self.repeatPW.text);
}
@end
